Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

saucelabs

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saucelabs

A wrapper around Sauce Labs REST API

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is saucelabs?

The 'saucelabs' npm package provides a Node.js client for interacting with the Sauce Labs API. Sauce Labs is a cloud-based platform for automated testing of web and mobile applications. This package allows you to manage Sauce Labs resources, such as jobs, tunnels, and assets, programmatically.

What are saucelabs's main functionalities?

Managing Jobs

This feature allows you to manage and retrieve details about your Sauce Labs jobs. The code sample demonstrates how to get details of a specific job using its job ID.

const { SauceLabs } = require('saucelabs');
const saucelabs = new SauceLabs({ user: 'your-username', key: 'your-access-key' });

async function getJobDetails(jobId) {
  const job = await saucelabs.getJob(jobId);
  console.log(job);
}

getJobDetails('your-job-id');

Managing Tunnels

This feature allows you to manage Sauce Connect tunnels. The code sample demonstrates how to list all active tunnels.

const { SauceLabs } = require('saucelabs');
const saucelabs = new SauceLabs({ user: 'your-username', key: 'your-access-key' });

async function getTunnels() {
  const tunnels = await saucelabs.listTunnels();
  console.log(tunnels);
}

getTunnels();

Uploading Assets

This feature allows you to upload assets to a specific job. The code sample demonstrates how to upload a file to a job using its job ID.

const { SauceLabs } = require('saucelabs');
const saucelabs = new SauceLabs({ user: 'your-username', key: 'your-access-key' });

async function uploadAsset(jobId, filePath) {
  const response = await saucelabs.uploadJobAssets(jobId, { files: [filePath] });
  console.log(response);
}

uploadAsset('your-job-id', 'path/to/your/file');

Other packages similar to saucelabs

FAQs

Package last updated on 10 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc